import Vue from "vue";
import VueRouter from "vue-router";
import home from '@/views/home'
import newMusic from '@/views/newMusic'
import rank from '@/views/rank'
import singer from '@/views/singer'
import songList from '@/views/songList'
Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    component: home
  },
  {
    path: '/newMusic',
    component: newMusic
  },
  {
    path: '/rank',
    component: rank
  },
  {
    path: '/singer',
    component: singer
  },
  {
    path: '/songList',
    component: songList
  },
];

const router = new VueRouter({
  routes
});

export default router;
